import request from "@/utils/request"
export const articledata = (id)=>{
    return request({
        method:'GET',
        url:`/v1_0/articles/${id}`
    })
}
export const pingl = (params)=>{
    return request({
        method:'GET',
        url:'/v1_0/comments',
        params
    })
}
// 评论点赞 
export const pingldianz = (userID)=>{
    return request({
        url:'/v1_0/comment/likings',
        method:'POST',
        data:{
            target:userID
        }
    })

}
// 对评论取消点赞
export const quexiaodianz = (userID)=>{
    return request({
        url:`/v1_0/comment/likings/${userID}`,
        method:'DELETE'
    })
}
// 发布评论的接口
export const fabupingl = data=>{
    return request({
        url:'/v1_0/comments',
        method:'POST',
        data
    })

}
// 获取评论回复接口
export const pinglreayl = (data)=>{
    return request({
        url:'/v1_0/comments',
        method:'GET',
        data
    })
}